import axios from '@/util/http'
import request from '@/util/requestUpload.js'
//获取
export function sign(query) {
	return axios({
		method:'get',
		url:`/wechat/sanbao-shifu/sign`,
		data: query
	})
}

//获取详情
export function getDetails(query) {
	return axios({
		method:'get',
		url:`/wechat/sanbao-shifu/details`,
		data: query
	})
}

//获取全部
export function getOrder(query) {
	return axios({
		method:'get',
		url:`/wechat/sanbao-shifu/sign-all`,
		data: query
	})
}

//签收
export function addSign(data) {
	return axios({
		method:'post',
		url:'/wechat/sanbao-shifu/addsign',
		data:data
	})
}
//网络订单签收
export function signUp(data) {
	return axios({
		method:'post',
		url:'/wechat/driver/sign',
		data:data
	})
}
//补签
export function updatesign(data) {
	return axios({
		method:'post',
		url:'/wechat/sanbao-shifu/updatesign',
		data:data
	})
}


// 补签操作 获取运单号
export function signIn(query) {
	return axios({
		method:'get',
		url:'/wechat/sanbao-shifu/sign-in',
		data:query
	})
}
//上传图片
// export function uploadImage(data) {
//   return request({
//     url: '/upload/buy/upload',
//     method: 'post',
//     data
//   })
// }